﻿using System;
using System.IO;
using GoogleEarthClasses.Global;

namespace GoogleEarthClasses.Global
{
    public static class ErrorManager
    {
        public static void CreateDebug(string debugData)
        {
            DirHelper.isDirectory(Constants.K_ErrorPath);
            StreamWriter _a = File.AppendText(Constants.K_ErrorPath + "DebugClasses.txt");
            _a.WriteLine("##############################");
            _a.WriteLine(System.DateTime.Now.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString());
            _a.WriteLine("##############################");
            _a.WriteLine(debugData);
            _a.Close();
            _a.Dispose();
        }
    }
}
